package es.xpt.ysf.commons.business.model;

import java.util.Locale;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;

import es.xpt.ysf.model.Item;

@SuppressWarnings(value="serial")
@XmlAccessorType(XmlAccessType.FIELD)
public class Currency extends Item { // NO_UCD
	
	public Currency() {
	}


	public Currency(Item item) {
		super(item);
	}

	
	public String getSymbol() {
		return java.util.Currency.getInstance(getCode()).getSymbol();
	}
	
	public String getSymbol(Locale locale) {
		return java.util.Currency.getInstance(getCode()).getSymbol(locale);
	}
	
	
}
